# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer:
pkgname=sylpheed-imap-notify
pkgver=1.1.0
pkgrel=0
pkgdesc="An IMAP NOTIFY and IDLE plugin for the Sylpheed mail client."
url="https://github.com/clehner/sylpheed-imap-notify"
arch="all"
license="GPL-3.0-or-later"
depends="sylpheed"
makedepends="sylpheed-dev gtk+-dev"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/clehner/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make PREFIX=/usr SYLPHEED_DIR=/usr/include/sylpheed/sylph
}

package() {
	cd "$builddir"
	install -d -m0755 "$pkgdir"/usr/lib/sylpheed/plugins
	install -m0644 imap_notify.so "$pkgdir"/usr/lib/sylpheed/plugins
}

sha512sums="8763bf271f2908c02112ae6f737f0435091d7f5f0b336cb60be6e655cc678c82cadde0d3d4fb595a673189b6b4444e65a8f753ff91fe5522423e20ec6e4ec339  sylpheed-imap-notify-1.1.0.tar.gz"
